package com.stadium.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;
import java.util.Date;

/**
 * 赛事管理员表
 *
 * @author wsl
 * @email
 * @date 2021-05-08 17:45:58
 */
@Data
@ApiModel(value = "赛事管理员表")
public class SysAdminUser implements Serializable {
    private static final long serialVersionUID = 1L;

    @Length(min = 0, max = 36)
    @ApiModelProperty(value = "id")
    private String id;

    @Length(min = 0, max = 36)
    @ApiModelProperty(value = "user_id")
    private String userId;


    @Length(min = 0, max = 10)
    @ApiModelProperty(value = "联系人",required = true)
    private String contact;

    @Length(min = 0, max = 10)
    @ApiModelProperty(value = "联系电话",required = true)
    private String phoneNum;

    @Length(min = 0, max = 10)
    @ApiModelProperty(value = "申请区域",required = true)
    private String area;

    @ApiModelProperty(value = "开通时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date registerTime;

    @ApiModelProperty(value = "最后一次创建赛事时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date lastCreateTime;

    @Length(min = 0, max = 10)
    @ApiModelProperty(value = "性别（0：未知 1：女 2：男）")
    private String sex;

    @Length(min = 0, max = 2)
    @ApiModelProperty(value = "审核状态（2：未审核 1：审核通过 0：审核未通过")
    private String auditStatus;

    @Length(min = 0, max = 10)
    @ApiModelProperty(value = "状态码（0：正常，1：异常）")
    private String statusCode;

    @Length(min = 0, max = 10)
    @ApiModelProperty(value = "删除码（0：正常 1：撤销授权）")
    private String deleteCode;

    @Length(min = 0, max = 255)
    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @Length(min = 0, max = 36)
    @ApiModelProperty(value = "创建人")
    private String createUser;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    @Length(min = 0, max = 36)
    @ApiModelProperty(value = "更新人")
    private String updateUser;

}
